﻿using System;
using System.Collections.Generic;

namespace PhiStore.Storage
{
    internal interface IStorageDevice
    {
        bool Create(string path);
        bool Write(string path, byte[] bytes);
        byte[] Read(string path);
        bool Delete(string path);
        bool Rename(string oldpath, string newpath);
        bool Exist(string path);
        DateTime LastAccess(string directory);
        List<string> GetPaths();
        bool Works();
        long RemainingBytes { get; }
        long ReservedBytes { get; }
        string BasePath { get; }
        string DirectorySeperator { get; }
        bool DeleteDirectory(string path);
    }
}
